<script type="text/javascript">
$(document).ready(function() {
	$('#citySelector').change(function() {
		location.href = "/hotel/city/" + $(this).val() + '/';
	});
});
</script>
<div class="headerBlock">
	<div class="headerTxt">Гостиницы</div>
	<div class="citySelect">Выберите город: <select id="citySelector">
	<option value="0" <?php echo ($cityId == 0) ? 'selected="selected"' : '' ?>>Все</option>
	<?php if (count($cities) > 0) { ?>
		<?php foreach ($cities as $city) { ?>
			<option value="<?php echo $city[0] ?>" <?php echo ($cityId == $city[0]) ? 'selected="selected"' : '' ?>><?php echo $city[1] ?></option>
		<?php } ?>
	<?php } ?>
	</select></div>
	<div class="clear"></div>
</div>
<div class="scrollBlock">
<?php
$this->widget('Carousel', array(
    'count' => $count,
	'data'  => $data,
	'detailedUrl' => $detailedUrl,
	'photos' => $photos,
	'entity' => $entity,
	'titleDetailes' => true 
));
?>
</div>